package com.food.restaurantpro.utils;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;

public class DiscountTextView extends TextView {

	public DiscountTextView(Context context) {
		super(context);
	}

	public DiscountTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	public DiscountTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
    protected void onDraw(Canvas canvas) {
        canvas.save();
        canvas.rotate(45, getWidth() / 2, getHeight() / 2);
        super.onDraw(canvas);
        canvas.restore();
    }
}
